/* 
    主标题
    font-size:18px;
    font-weight:bold
    卡片模块标题
    font-size:16px;
    font-weight:bold;
    普通文字:
    font-size:14px;
    标注文字:
    font-size:12px;
*/

html {
  zoom: 1;
}

html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-size: 14px;
  /* font-family:'selfFont';
  font-size:16px !important;
  color:#000 !important; */
}

@media (max-width:1440px) {

  /* 小屏终端下通过调整html整体缩放deviceRatio */
  html {
    zoom: 0.8;
  }
}

.container {
  height: 100%;
  overflow: hidden;
}

.main-content {
  display: flex;
  position: relative;
  height: calc(100% - 60px);
  background-color: #f7f8fa;
}

.container.dark .main-content {
  background-color: #05050f;
}

.sidebar-container {
  position: relative;
  background: #fff;
  height: 100%;
  transition: all 0.3s;
  overflow: hidden auto;
}

.sidebar-container::-webkit-scrollbar {
  width: 8px;
  height: 1px;
}

.sidebar-container.dark {
  background: #191932;
}

.sidebar-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(194, 193, 193, 0.8);
}

.sidebar-container::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(138, 139, 182, 0.3);
}

.sidebar-container .collapsed-button {
  position: absolute;
  bottom: 40px;
  width: 60px;
  text-align: center;
  height: 40px;
  transition: all 0.3s;
  line-height: 40px;
  color: #fff;
  cursor: pointer;
  left: 50%;
  margin-left: -30px;
}

.content-container {
  height: 100%;
  overflow: hidden;
  background-color: #f7f8fa;
}

.container.dark .content-container {
  background-color: #05050f;
}

.content-container .breadcrumb {
  padding: 0 20px;
  height: 40px;
  margin-bottom: 10px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* animation:shadowMotion 1s forwards;
  animation-delay: 0.5s; */
}

.content-container .breadcrumb :global(.ant-breadcrumb-link) {
  font-size: 1rem;
}

/* 
  日期控件左右切换button 样式
*/
.date-picker-button-left,
.date-picker-button-right {
  background-color: #1545ff;
  color: #fff;
  width: 2rem;
  text-align: center;
  cursor: pointer;
  height: 28px;
  line-height: 28px;
}

.date-picker-button-left {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;

}

.date-picker-button-right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.skeleton {
  border-radius: 4px;
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.container.dark .skeleton {
  background: #191932 !important;
}

.container.dark .skeleton :global(.ant-skeleton-title),
.container.dark .skeleton :global(.ant-skeleton-paragraph)>li {
  background: #22264b !important;
}

/* 
  ------自定义table组件全局样式
*/
.self-table-container:global(.ant-table-wrapper) {
  padding: 1rem;
  background-color: #fff;
  border: none;
}

.container .self-table-container:global(.ant-table-wrapper) :global(.ant-table) {
  background: transparent;
}

.container .self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-container) {
  border-bottom: none;
}

.self-table-container.dark:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-container) table {
  border: none;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-title) {
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  border: none;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) table>thead>tr>th,
.base-container:global(.ant-table-wrapper) :global(.ant-table) table>thead>tr>th {
  padding: 8px 10px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  color: #3c3d44;
  font-size: 1rem;
  white-space: nowrap;
}

.self-table-container.small:global(.ant-table-wrapper) {
  padding: 0;
}

.self-table-container.small:global(.ant-table-wrapper) :global(.ant-table) table>thead>tr>th {
  padding: 4px 10px;
  font-size: 1rem;
}

.self-table-container.small:global(.ant-table-wrapper) :global(.ant-table) table>tbody>tr>td {
  padding: 4px 10px;
  font-size: 1rem;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) table>tbody>tr>td,
.base-container:global(.ant-table-wrapper) :global(.ant-table) table>tbody>tr>td {
  padding: 8px 10px;
  font-size: 1rem;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-pagination) {
  /* position:fixed;
  right:20px;
  bottom:10px;
  margin:10px 0; */
  /* justify-content: flex-start; */
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-tbody) tr:hover td> :global(.editable-cell-value-wrapper) {
  border: 1px solid #6268a7;
  padding: 0 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* 自定义Table组件合并单元格样式 */
.self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-tbody)>tr>td:global(.multi-table-cell) {
  padding: 0;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-tbody)>tr>td:global(.multi-table-cell)>div>div {
  padding: 2px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-tbody)>tr>td:global(.multi-table-cell)>div>div:last-child {
  border-bottom: none !important;
}

/* 深色Table组件样式 */
.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-container) {
  /* #303463 */
  border: 1px solid #272b5c;
  border-bottom: none;
}

.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-title) {
  color: #fff;
  background-color: #191a2f;
}

.container.dark .self-table-container:global(.ant-table-wrapper) {
  background-color: #191932;
}

.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) table>thead>tr>th {
  color: #fff;
  background-color: #1e2141;
  border-right: 1px solid #272b5c;
  border-bottom: 1px solid #272b5c !important;
}

.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) table>tbody>tr>td {
  background-color: #23233f;
  color: #fff;
  border-right: 1px solid #272b5c;
  border-bottom: 1px solid #272b5c;
}

.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) table>tbody>tr:nth-child(even)>td {
  /* background-color:#191932; */
}

.container.dark .self-table-container:global(.ant-table-wrapper) :global(.ant-table) :global(.ant-table-tbody)>tr>td:global(.multi-table-cell)>div>div {
  border-bottom: 1px solid #272b5c;
}

@media (max-width:1440px) {}

/* 
  ------自定义table组件全局样式结束
*/

/* 
  -----自定义Tabs组件样式
*/

.custom-tabs:global(.ant-tabs) :global(.ant-tabs-bar) {
  background-color: #f7f8fa;
}

.custom-tabs:global(.ant-tabs) :global(.ant-tabs-bar) {
  border-bottom: none;
  padding-left: 20px;
}

.container .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav) {
  background-color:#fff;
  padding-left: 1rem;
  margin: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom:1px solid #ebebeb;
}

.container .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav) :global(.ant-tabs-tab) {
  padding: 12px 4px;
}

.container.dark .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav) {
  color: #585987;
  background-color: #22264b;
}

.container .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav)::before {
  border-bottom: none;
}

.container.dark .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav) :global(.ant-tabs-tab-active) {
  color: #fff;
  font-weight: bold;
}

.container.dark .custom-tabs:global(.ant-tabs) :global(.ant-tabs-nav) :global(.ant-tabs-ink-bar) {
  background-color: #1545ff;
}

/* 
  自定义卡片式Tabs组件样式
*/
.custom-tabs:global(.ant-tabs-card) :global(.ant-tabs-nav) {
  padding-top: 20px !important;

}

.custom-tabs:global(.ant-tabs-card) :global(.ant-tabs-nav) :global(.ant-tabs-tab) {
  padding: 4px 10px !important;
  margin-right: 4px;
}

.container.dark .custom-tabs:global(.ant-tabs-card) :global(.ant-tabs-nav) :global(.ant-tabs-tab) {
  border: none;
  background: #22264b;
}

.container.dark .custom-tabs:global(.ant-tabs-card) :global(.ant-tabs-nav) :global(.ant-tabs-tab):global(.ant-tabs-tab-active) {
  background: #191932;
}

/* 
  自定义高度自适应Tabs组件
*/
.flex-tabs:global(.ant-tabs) {
  height: 100%;
}

.flex-tabs:global(.ant-tabs) :global(.ant-tabs-content) {
  height: 100%;
}

.flex-tabs:global(.ant-tabs) :global(.ant-tabs-content) :global(.ant-tabs-tabpane) {
  height: 100%;
}

/* 
  自定义树组件样式
*/
/* 侧边栏树结构防止换行 */
.container :global(.ant-tree) {
  padding-top: 1rem;
}

.container :global(.ant-tree) :global(.ant-tree-node-content-wrapper) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 100px;
  font-size: 1rem;
}

.container :global(.ant-tree) :global(.ant-tree-node-content-wrapper):hover {
  background-color: #f5f5f5;
  color: #191932;
}

.container .custom-tree:global(.ant-tree) :global(.ant-tree-node-content-wrapper) {
  /* background-color:#f7f8fa; */
  padding: 0 10px;
}

.container .custom-tree:global(.ant-tree) :global(.ant-tree-node-content-wrapper):global(.ant-tree-node-selected) {
  background-color: #1545ff !important;
  color: #fff !important;
}

.container.dark .custom-tree:global(.ant-tree) {
  background-color: #191932;
  color: #fff;
}

.container.dark .custom-tree:global(.ant-tree) :global(.ant-tree-node-content-wrapper) {
  /* background-color:#22264b;
  color:#646499; */
}

/* 
  自定义多选模式select，防止选中项过多超出屏幕范围
*/
.self-select-container:global(.ant-select) :global(.ant-select-selector) {
  height: 300px;
  overflow: hidden auto;
}

.page-container {
  position:relative;
  padding: 1rem;
  height: 100%;
  overflow: hidden;
  
}

/* 
  全局Card组件样式
*/
.card-container-wrapper {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  height: 100%;
  padding-bottom: 1rem;
  padding-right: 1rem;
}

.card-container {
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
  position: relative;
  color: rgba(0, 0, 0, .65);
  /* box-shadow:0 4px 6px -4px #0000001f, 0 6px 10px #00000014; */
  overflow-x: hidden;
  overflow-y: auto;
}

.card-container .card-title {
  height: 2.4rem;
  line-height: 2.4rem;
  font-size: 1rem;
  font-weight: bold;
  padding: 0 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f9f9f9;
}

.card-container .card-title .symbol {
  height: 50%;
  width: 3px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #0a55ff;
}

.card-container .card-content {
  height: calc(100% - 2.4rem);
  padding: 1rem;
  position: relative;
}

.card-container .button-container {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

/* 滚动条样式 */
.scroll-container {
  overflow: hidden auto;
}

.container .card-container::-webkit-scrollbar,
.container .scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 1px;
}

.container .card-container::-webkit-scrollbar-thumb,
.container .scroll-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(194, 193, 193, 0.8);
}

.container .card-container::-webkit-scrollbar-track,
.container .scroll-container::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(138, 139, 182, 0.3);
}

.container.dark .card-container {
  background-color: #191932;
  color: #b0b0b0;
}

.container.dark .card-title {
  border-bottom: 1px solid #2e315a;
}

/* 
  自定义Radio组件样式
*/
.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper) {
  background: #fff;
  color: rgba(0, 0, 0, 0.65);
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
}

.container .custom-radio.small:global(.ant-radio-group) :global(.ant-radio-button-wrapper) {
  height: 24px;
  line-height: 24px;
}

.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper):hover {
  background-color: #d9d9d9;
  color: #fff;
}

.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper):first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper):last-child {
  /* border-left:none !important; */
  border-right: 1px solid #d9d9d9;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper)::before {
  display: none;
}

.container .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper):global(.ant-radio-button-wrapper-checked) {
  color: #fff !important;
  background: #1545ff;
}

.container .custom-date-picker:global(.ant-picker) {
  background: #fff;
  border: none;
  height: 28px;
}

.container .custom-date-picker:global(.ant-picker) :global(.anticon) {
  color: rgba(0, 0, 0, 0.65);
}

.container .custom-date-picker:global(.ant-picker) :global(.ant-picker-input)>input {
  color: rgba(0, 0, 0, 0.65);
}

/* 日期组件深色模式 */
.container.dark .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper) {
  background: #22264b;
  border: none;
  border-right: 1px solid #181b34;
  color: rgba(255, 255, 255, 0.65);
}

.container.dark .custom-radio:global(.ant-radio-group) :global(.ant-radio-button-wrapper):global(.ant-radio-button-wrapper-checked) {
  background: #1545ff;
  color: #fff;
}

.container.dark .custom-date-picker:global(.ant-picker) {
  border: 1px solid #7a79b3;
}

.container.dark .custom-date-picker:global(.ant-picker) :global(.anticon) {
  color: #7a79b3;
}

.container.dark .custom-date-picker:global(.ant-picker) :global(.ant-picker-input)>input {
  color: #7a79b3;
}

/* 
  自定义一组button组件样式
*/
.custom-btn {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  color: #fff !important;
  background: #1545ff;
  border: 1px solid #0e2b9a;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

.custom-button:global(.ant-radio-group)> :global(.ant-radio-button-wrapper) {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  color: #fff !important;
  background: #1545ff;
  border: none;
  border-top: 1px solid #0e2b9a;
  border-bottom: 1px solid #0e2b9a;
  border-left: 1px solid #0e2b9a;
}

.custom-button:global(.ant-radio-group)> :global(.ant-radio-button-wrapper):hover {
  background: #335cfb;
}

.custom-button:global(.ant-radio-group)> :global(.ant-radio-button-wrapper):first-child {
  border-radius: 4px 0 0 4px;
}

.custom-button:global(.ant-radio-group)> :global(.ant-radio-button-wrapper):last-child {
  border-right: 1px solid #0e2b9a;
  border-radius: 0 4px 4px 0;
}

.custom-button:global(.ant-radio-group)> :global(.ant-radio-button-wrapper):last-child::before {
  display: none;
}

/* 
  自定义Radio样式
*/
.radio-container {
  display:flex;
  align-items: center;
}
.radio-container > .radio-item {
  padding:4px 16px;
  border-radius:14px;
  cursor: pointer;
  margin-right:1rem;
}
.radio-container > .radio-item:hover {
  background-color:#ececec;
}
.radio-container > .radio-item.selected {
  background-color:rgba(22, 93, 255, 0.05);
  color:#165dff;
  font-weight:bold;
}
  
/* 
  自定义Select组件样式
*/
.container .custom-select:global(.ant-select) {
  height: 28px !important;
  line-height: 28px;
}

.container .custom-select:global(.ant-select) :global(.ant-select-selector) {
  height: 28px !important;
  align-items: center;
  border-radius: 4px;
  /* border:1px solid #1545ff; */
}

.container.dark .custom-select:global(.ant-select) :global(.ant-select-selector) {
  height: 28px;
  background-color: #22264b;
  border: none;
  color: rgba(255, 255, 255, 0.8);
}

.container.dark .custom-select:global(.ant-select) :global(.ant-select-arrow) {
  color: rgba(255, 255, 255, 0.8);
}

/* 
  浮动全局日期控件样式
*/
.float-button-group {
  position: absolute;
  right: 10px;
  top: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.float-button-group :global(.ant-radio-group) :global(.ant-radio-button-wrapper) {}

/* 
  横向flex盒子样式 
*/
.flex-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  text-align: center;
}

.flex-container .flex-item {
  flex: 1;
  white-space: nowrap;
}

.data {
  font-size: 1.4rem;
  color: #323238;
  font-weight: bold;
}

.text {
  font-size: 1rem;
  color: #323238;
}

.sub-text {
  font-size: 0.8rem;
  margin: 0 4px;
}

.data.down {
  color: #6fcc17 !important;
}

.data.up {
  color: #e83320 !important;
}

.container.dark .data {
  color: #fff;
}

.container.dark .text {
  color: #fff;
}

.container.dark .sub-text {
  color: #fff;
}

.tag-on {
  border-radius: 4px;
  background-color: rgba(94, 255, 90, 0.2);
  border: 1px solid #5eff5a;
  color: #5eff5a;
  padding: 2px 10px;
  white-space: nowrap;
}

.tag-off {
  border-radius: 4px;
  background-color: rgba(255, 45, 46, 0.2);
  border: 1px solid #ff2d2e;
  color: #ff2d2e;
  padding: 2px 10px;
  white-space: nowrap;
}

/* 
  自定义Form组件样式
*/
.container.dark :global(.ant-form) :global(.ant-form-item) :global(.ant-form-item-label)>label {
  color: #fff;
}

.container.dark :global(.ant-form) :global(.ant-form-item) :global(.ant-radio-group) :global(.ant-radio-wrapper) {
  color: #fff;
}
/* 状态symbol样式 */

.custom-tag {
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:14px;
  border:1px solid #ccc;
  background-color:#f9fafb;
  font-size:0.8rem;
  line-height:0.8rem;
}
.custom-tag.success {
  background-color: rgba(23, 178, 106, 0.15);
  border-color:#65e6a9;
  color:#17b26a;
}
.custom-tag.fail {
  background-color:#f9fafb;
  border-color:#eeeeee;
}
.custom-tag .dot {
  width:4px;
  height:4px;
  display:inline-block;
  background:#ccc;
  border-radius:50%;
  margin-right:4px;
}
.custom-tag.success .dot {
  background:#17b26a;
}
.custom-tag.fail .dot {
  background:#667085;
}

/* 
  遮罩层样式
*/
.spin:global(.ant-spin) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.over-mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.container .select-container {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
}

.container.dark .select-container {
  color: #fff;
}

:global(.ant-modal-root) :global(.ant-modal-mask) {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width:1440px) {
  .main-content {
    height: calc(100% - 50px);
  }

  .content-container .breadcrumb {
    padding: 0 10px;
    height: 30px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* animation:shadowMotion 1s forwards;
      animation-delay: 0.5s; */
  }

  /* .float-button-group {
      top:65px;
  } */
}

/* 自定义Modal组件样式 */
.custom-modal:global(.ant-modal) :global(.ant-modal-content) {
  background-color: #fff;
  color: #fff;
  height: 100%;
}

.custom-modal:global(.ant-modal) :global(.ant-modal-content) :global(.ant-modal-close-x) {
  color: #fff;
}

.custom-modal:global(.ant-modal) :global(.ant-modal-content) :global(.ant-modal-body) {
  height: 100%;
}

.custom-modal:global(.ant-modal) :global(.ant-modal-content)> :global(.ant-modal-header) {
  background-color: #165dff;
  text-align: center;
  border-bottom: none;
}
.custom-modal:global(.ant-modal) :global(.ant-modal-content)> :global(.ant-modal-header) > :global(.ant-modal-title) {
  color:#fff;
}
/* 自定义List组件样式 */
.list-container {
  display:flex;
  align-items: center;
  justify-content: space-between;
}
.list-container > .list-item {
  display:inline-flex;
  align-items:center;
  justify-content: space-around;
  padding:1rem 2rem;
  background-color:#f7f8fa;
  text-align: left;
}
.list-item .list-item-icon {
  width:40px;
  height:40px;
  line-height:40px;
  text-align:center;
  border-radius:14px;
  color:#fff;
  background-color:#6a37ff;
}
.list-item .text {
  font-size:1.2rem;
  color:#000;
}
.list-item .sub-text {
  font-size:0.8rem;
  margin:0;
  color:rgba(0, 0, 0, 0.65);
}
/* 自定义List */
.custom-list {
  
}

.custom-list > .custom-list-item {
  background:#f8f8f8;
  padding:4px 6px;
  margin-bottom:4px;
  border-radius:4px;
}
.custom-list > .custom-list-item:hover {
  background:#ececec;
}
.custom-list > .custom-list-item.selected {
  background-color:#1545ff;
  color:#fff;
}

